﻿using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCompanyName.AbpZeroTemplate.AutoMapper
{
    public class ProjectLogProfile : Profile
    {
        protected override void Configure()
        {
            Mapper.CreateMap<Prm.Admin.OperationLog, MyCompanyName.AbpZeroTemplate.Prm.Project.Dto.GetOperationLogOutPut>()
                .ForMember(dto => dto.CreationTime, opt => opt.MapFrom(t => t.CreationTime.ToString("yyyy-MM-dd")))
                .ForMember(dto => dto.CreateionUser, opt => opt.Ignore());
        }
    }
}
